package com.wgh.inventory.entity;

import com.wgh.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存实体类
 * 
 * @author AI Shop
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("inventory_inventory")
public class Inventory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * SKU ID
     */
    private Long skuId;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 当前库存
     */
    private Integer stock;

    /**
     * 锁定库存（已下单但未发货）
     */
    private Integer lockedStock;

    /**
     * 预警库存
     */
    private Integer warningStock;
}